import request from '../utils/axios'

export const getlist = (params) => request({
    url: 'permissions/list',
    params
})

export const upData = (data) => request({
    url: 'permissions/upData',
    method: 'post',
    data
})

export const addData = (data) => request({
    url: 'permissions/adddata',
    method: 'post',
    data
})

export const remove = (params) => request({
    url: 'permissions/remove',
    params
})

export const validationapi = (params) => request({
    url: 'permissions/validation',
    params
})